#include <iostream>
#include <fstream>
#include "yaml-cpp/yaml.h"
using namespace std;

int main(int argc,char** argv)
{

    cout << "name:" << endl;
    YAML::Node config =  YAML::LoadFile("C:/Users/11341/Desktop/yaml/files/config.yaml");

    cout << "name:"  << config["name"].as<string>() << endl;
    cout << "sex:" << config["sex"].as<string>() << endl;
    cout << "age:" << config["age"].as<int>() << endl;
    return 0;
}
